package org.rency.ues.domainservice.support;

import java.security.PrivateKey;
import java.security.cert.X509Certificate;

public class Certification extends BaseDomain{

	/**
	 * 
	 */
	private static final long serialVersionUID = 5149001245097564309L;
	private String path;
    private String password;
    private long version;
    private X509Certificate certificate;
    private PrivateKey privateKey;
    private String serialNo;
    private boolean validate = false;
    /**
     * 只包含公钥的Base64编码的证书
     */
    private String certBase;

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public long getVersion() {
		return version;
	}

	public void setVersion(long version) {
		this.version = version;
	}

	public X509Certificate getCertificate() {
		return certificate;
	}

	public void setCertificate(X509Certificate certificate) {
		this.certificate = certificate;
	}

	public PrivateKey getPrivateKey() {
		return privateKey;
	}

	public void setPrivateKey(PrivateKey privateKey) {
		this.privateKey = privateKey;
	}

	public String getSerialNo() {
		return serialNo;
	}

	public void setSerialNo(String serialNo) {
		this.serialNo = serialNo;
	}

	public boolean isValidate() {
		return validate;
	}

	public void setValidate(boolean validate) {
		this.validate = validate;
	}

	public String getCertBase() {
		return certBase;
	}

	public void setCertBase(String certBase) {
		this.certBase = certBase;
	}
	
}